package com.kakarote.hrm.entity.PO;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 招聘岗位
 * </p>
 *
 * @author system
 * @since 2024-01-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wk_hrm_recruit_position")
@ApiModel(value = "HrmRecruitPosition对象", description = "招聘岗位")
public class HrmRecruitPosition implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "计划岗位id")
    @TableId(value = "position_id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long positionId;

    @ApiModelProperty(value = "计划编号")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long planId;

    @ApiModelProperty(value = "岗位编码")
    private String positionCode;

    @ApiModelProperty(value = "招聘岗位")
    private String positionName;

    @ApiModelProperty(value = "招聘原因")
    private String positionReason;

    @ApiModelProperty(value = "招聘数量")
    private Integer positionNum;

    @ApiModelProperty(value = "招聘条件")
    private String positionCondition;

    @ApiModelProperty(value = "岗位类别（1管理岗、2专技岗、3工勤岗）")
    private Integer positionType;

    @ApiModelProperty(value = "招聘渠道（1校招、2社招）")
    private Integer positionChannel;

    @ApiModelProperty(value = "招聘单位")
    private String positionUnit;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建人id")
    @TableField(fill = FieldFill.INSERT)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long createUserId;

    @ApiModelProperty(value = "更新人id")
    @TableField(fill = FieldFill.UPDATE)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long updateUserId;
}
